package com.etc.service;

import com.etc.entity.Shoppingcart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingcartService {
    boolean add(Shoppingcart record);

    List<Shoppingcart> dofindByUserIdAndGoodsId(Long userId, Long goodsId);

    boolean updateCount(Shoppingcart updated, Long userId, Long goodsId);

    List<Shoppingcart> doFindByUserId(Long userId);

    boolean doupdatGoodsCount(int goodsCount, Long userId, Long goodsId);

    boolean doDelS(Long userId, Long goodsId);

    boolean doDelA(Long userId);
}
